FROM registry.cn-hangzhou.aliyuncs.com/xiaoyilin/nodejs:22.14.0
WORKDIR /usr/local/vue3-ts-tailwindcss3
# 安装Git
RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list.d/debian.sources && \
apt-get -y update && \
apt install -y git && \
git clone https://gitee.com/yilinxiao/vue3-ts-tailwindcss3.git /usr/local/vue3-ts-tailwindcss3 && \
apt purge -y git && \
apt autoremove -y  && \
rm -rf /var/lib/apt/lists/* && \
npm i pnpm -g --registry=https://registry.npmmirror.com && \
pnpm config set registry https://registry.npmmirror.com  && \
pnpm install
CMD ["pnpm", "run", "dev"]

# https://cn.vuejs.org/
# Tailwind CSS
# https://tailwindui.com/documentation
# https://www.tailwindcss.cn/docs/installation
# Vite
# https://www.vitejs.net/guide/
# docker build -t registry.cn-hangzhou.aliyuncs.com/xiaoyilin/vue3-ts-tailwindcss3:n22 .
# docker push registry.cn-hangzhou.aliyuncs.com/xiaoyilin/vue3-ts-tailwindcss3:n22
# docker run --name vue3 -d -p 5173:5173 registry.cn-hangzhou.aliyuncs.com/xiaoyilin/vue3-ts-tailwindcss3:n22
# docker run -p 5173:5173 --rm -it registry.cn-hangzhou.aliyuncs.com/xiaoyilin/vue3-ts-tailwindcss3:n22 bash